package com.example.springboot_springsecurity_jwt_redis.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "blog表")
public class Blog implements Serializable {
    @ApiModelProperty("博客id")
    private Integer blogId;

    @ApiModelProperty("博客标题")
    private String blogTitle;

    @ApiModelProperty("博客点赞量")
    private Integer blogLikenum;

    @ApiModelProperty("博客浏览量")
    private Integer blogBrowsenum;

    @ApiModelProperty("博客是否开启评论,1开启,0不开启")
    private Boolean blogCommentenable;

    @ApiModelProperty("博客是否发布")
    private Boolean blogPublish;

    @ApiModelProperty("博客的创建时间")
    private Date blogCreatetime;

    @ApiModelProperty("博客修改时间")
    private Date blogUpdatetime;

    @ApiModelProperty("博客删除时间")
    private Date blogDeletetime;

    @ApiModelProperty("博客类型id")
    private Integer typeId;

    @ApiModelProperty("博客内容")
    private String blogContent;

    @ApiModelProperty("博客评论")
    private List<Comments> commentsList;

    private static final long serialVersionUID = 1L;
}